home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000129_icon-group-sender _Fri Aug 18 15:23:00 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
2KB
Received: by cheltenham.cs.arizona.edu; Fri, 18 Aug 1995 16:45:17 MST
Message-Id: <9508181523.AA21372@ns1.computek.net>
Mime-Version: 1.0
Content-Length: 1275
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Date: Fri, 18 Aug 95 15:23 CDT
From: gep2@computek.net
Subject: SNOBOL4 and printing on same line
To: icon-group@cs.arizona.edu
X-Mailer: SPRY Mail Version: 04.00.06.17
Errors-To: icon-group-errors@cs.arizona.edu
>The SNOBOL4 Programming Language, second edition ("green book") on
page 167-168 talk about output associations and carriage control.
In looking at a Fortan manual, if the first character printed on a
line is a '1', then a new page eject is done before printing.
...true, and depending on the version of SNOBOL4 a person is using, this might
still be relevant.
But the use of the Fortran I/O package was I suspect an expedient in the design
of the original SNOBOL4, and is something of an anachronism today. Most of the
time, SNOBOL4's own formatting capabilities are much easier to use than Fortran
FORMAT statements are.
If you're using SNOBOL4+, at least, you can simply output standard ASCII CR and
LF control characters as part of your output string, if you wish. To suppress
the CR/LF that is automatically added at the end of the output statement, you
can include a Ctrl-Z, or CHAR(26), where you wish the output to end.
Of course, if you're using a laser printer or something, it may be easier to
simply output to the printer in binary mode so you can send the necessary
printer positioning/formatting/etc commands directly, allowing you basically
infinite flexibility to do whatever you want.
Gordon Peterson
http://www.computek.net/public/gep2/